package com.hngy.educationaladministration.entity;

import java.util.ArrayList;
import java.util.Date;
import java.util.Iterator;
import java.util.List;

public class WorkapprovalExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public WorkapprovalExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        protected void addCriterionForJDBCDate(String condition, Date value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value.getTime()), property);
        }

        protected void addCriterionForJDBCDate(String condition, List<Date> values, String property) {
            if (values == null || values.size() == 0) {
                throw new RuntimeException("Value list for " + property + " cannot be null or empty");
            }
            List<java.sql.Date> dateList = new ArrayList<java.sql.Date>();
            Iterator<Date> iter = values.iterator();
            while (iter.hasNext()) {
                dateList.add(new java.sql.Date(iter.next().getTime()));
            }
            addCriterion(condition, dateList, property);
        }

        protected void addCriterionForJDBCDate(String condition, Date value1, Date value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value1.getTime()), new java.sql.Date(value2.getTime()), property);
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Long value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Long value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Long value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Long value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Long value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Long value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Long> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Long> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Long value1, Long value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Long value1, Long value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdTypeIsNull() {
            addCriterion("id_type is null");
            return (Criteria) this;
        }

        public Criteria andIdTypeIsNotNull() {
            addCriterion("id_type is not null");
            return (Criteria) this;
        }

        public Criteria andIdTypeEqualTo(Long value) {
            addCriterion("id_type =", value, "idType");
            return (Criteria) this;
        }

        public Criteria andIdTypeNotEqualTo(Long value) {
            addCriterion("id_type <>", value, "idType");
            return (Criteria) this;
        }

        public Criteria andIdTypeGreaterThan(Long value) {
            addCriterion("id_type >", value, "idType");
            return (Criteria) this;
        }

        public Criteria andIdTypeGreaterThanOrEqualTo(Long value) {
            addCriterion("id_type >=", value, "idType");
            return (Criteria) this;
        }

        public Criteria andIdTypeLessThan(Long value) {
            addCriterion("id_type <", value, "idType");
            return (Criteria) this;
        }

        public Criteria andIdTypeLessThanOrEqualTo(Long value) {
            addCriterion("id_type <=", value, "idType");
            return (Criteria) this;
        }

        public Criteria andIdTypeIn(List<Long> values) {
            addCriterion("id_type in", values, "idType");
            return (Criteria) this;
        }

        public Criteria andIdTypeNotIn(List<Long> values) {
            addCriterion("id_type not in", values, "idType");
            return (Criteria) this;
        }

        public Criteria andIdTypeBetween(Long value1, Long value2) {
            addCriterion("id_type between", value1, value2, "idType");
            return (Criteria) this;
        }

        public Criteria andIdTypeNotBetween(Long value1, Long value2) {
            addCriterion("id_type not between", value1, value2, "idType");
            return (Criteria) this;
        }

        public Criteria andIdTeacherIsNull() {
            addCriterion("id_teacher is null");
            return (Criteria) this;
        }

        public Criteria andIdTeacherIsNotNull() {
            addCriterion("id_teacher is not null");
            return (Criteria) this;
        }

        public Criteria andIdTeacherEqualTo(Long value) {
            addCriterion("id_teacher =", value, "idTeacher");
            return (Criteria) this;
        }

        public Criteria andIdTeacherNotEqualTo(Long value) {
            addCriterion("id_teacher <>", value, "idTeacher");
            return (Criteria) this;
        }

        public Criteria andIdTeacherGreaterThan(Long value) {
            addCriterion("id_teacher >", value, "idTeacher");
            return (Criteria) this;
        }

        public Criteria andIdTeacherGreaterThanOrEqualTo(Long value) {
            addCriterion("id_teacher >=", value, "idTeacher");
            return (Criteria) this;
        }

        public Criteria andIdTeacherLessThan(Long value) {
            addCriterion("id_teacher <", value, "idTeacher");
            return (Criteria) this;
        }

        public Criteria andIdTeacherLessThanOrEqualTo(Long value) {
            addCriterion("id_teacher <=", value, "idTeacher");
            return (Criteria) this;
        }

        public Criteria andIdTeacherIn(List<Long> values) {
            addCriterion("id_teacher in", values, "idTeacher");
            return (Criteria) this;
        }

        public Criteria andIdTeacherNotIn(List<Long> values) {
            addCriterion("id_teacher not in", values, "idTeacher");
            return (Criteria) this;
        }

        public Criteria andIdTeacherBetween(Long value1, Long value2) {
            addCriterion("id_teacher between", value1, value2, "idTeacher");
            return (Criteria) this;
        }

        public Criteria andIdTeacherNotBetween(Long value1, Long value2) {
            addCriterion("id_teacher not between", value1, value2, "idTeacher");
            return (Criteria) this;
        }

        public Criteria andWorktitleIsNull() {
            addCriterion("workTitle is null");
            return (Criteria) this;
        }

        public Criteria andWorktitleIsNotNull() {
            addCriterion("workTitle is not null");
            return (Criteria) this;
        }

        public Criteria andWorktitleEqualTo(String value) {
            addCriterion("workTitle =", value, "worktitle");
            return (Criteria) this;
        }

        public Criteria andWorktitleNotEqualTo(String value) {
            addCriterion("workTitle <>", value, "worktitle");
            return (Criteria) this;
        }

        public Criteria andWorktitleGreaterThan(String value) {
            addCriterion("workTitle >", value, "worktitle");
            return (Criteria) this;
        }

        public Criteria andWorktitleGreaterThanOrEqualTo(String value) {
            addCriterion("workTitle >=", value, "worktitle");
            return (Criteria) this;
        }

        public Criteria andWorktitleLessThan(String value) {
            addCriterion("workTitle <", value, "worktitle");
            return (Criteria) this;
        }

        public Criteria andWorktitleLessThanOrEqualTo(String value) {
            addCriterion("workTitle <=", value, "worktitle");
            return (Criteria) this;
        }

        public Criteria andWorktitleLike(String value) {
            addCriterion("workTitle like", value, "worktitle");
            return (Criteria) this;
        }

        public Criteria andWorktitleNotLike(String value) {
            addCriterion("workTitle not like", value, "worktitle");
            return (Criteria) this;
        }

        public Criteria andWorktitleIn(List<String> values) {
            addCriterion("workTitle in", values, "worktitle");
            return (Criteria) this;
        }

        public Criteria andWorktitleNotIn(List<String> values) {
            addCriterion("workTitle not in", values, "worktitle");
            return (Criteria) this;
        }

        public Criteria andWorktitleBetween(String value1, String value2) {
            addCriterion("workTitle between", value1, value2, "worktitle");
            return (Criteria) this;
        }

        public Criteria andWorktitleNotBetween(String value1, String value2) {
            addCriterion("workTitle not between", value1, value2, "worktitle");
            return (Criteria) this;
        }

        public Criteria andBeginDateIsNull() {
            addCriterion("begin_date is null");
            return (Criteria) this;
        }

        public Criteria andBeginDateIsNotNull() {
            addCriterion("begin_date is not null");
            return (Criteria) this;
        }

        public Criteria andBeginDateEqualTo(Date value) {
            addCriterionForJDBCDate("begin_date =", value, "beginDate");
            return (Criteria) this;
        }

        public Criteria andBeginDateNotEqualTo(Date value) {
            addCriterionForJDBCDate("begin_date <>", value, "beginDate");
            return (Criteria) this;
        }

        public Criteria andBeginDateGreaterThan(Date value) {
            addCriterionForJDBCDate("begin_date >", value, "beginDate");
            return (Criteria) this;
        }

        public Criteria andBeginDateGreaterThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("begin_date >=", value, "beginDate");
            return (Criteria) this;
        }

        public Criteria andBeginDateLessThan(Date value) {
            addCriterionForJDBCDate("begin_date <", value, "beginDate");
            return (Criteria) this;
        }

        public Criteria andBeginDateLessThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("begin_date <=", value, "beginDate");
            return (Criteria) this;
        }

        public Criteria andBeginDateIn(List<Date> values) {
            addCriterionForJDBCDate("begin_date in", values, "beginDate");
            return (Criteria) this;
        }

        public Criteria andBeginDateNotIn(List<Date> values) {
            addCriterionForJDBCDate("begin_date not in", values, "beginDate");
            return (Criteria) this;
        }

        public Criteria andBeginDateBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("begin_date between", value1, value2, "beginDate");
            return (Criteria) this;
        }

        public Criteria andBeginDateNotBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("begin_date not between", value1, value2, "beginDate");
            return (Criteria) this;
        }

        public Criteria andEndDateIsNull() {
            addCriterion("end_date is null");
            return (Criteria) this;
        }

        public Criteria andEndDateIsNotNull() {
            addCriterion("end_date is not null");
            return (Criteria) this;
        }

        public Criteria andEndDateEqualTo(Date value) {
            addCriterionForJDBCDate("end_date =", value, "endDate");
            return (Criteria) this;
        }

        public Criteria andEndDateNotEqualTo(Date value) {
            addCriterionForJDBCDate("end_date <>", value, "endDate");
            return (Criteria) this;
        }

        public Criteria andEndDateGreaterThan(Date value) {
            addCriterionForJDBCDate("end_date >", value, "endDate");
            return (Criteria) this;
        }

        public Criteria andEndDateGreaterThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("end_date >=", value, "endDate");
            return (Criteria) this;
        }

        public Criteria andEndDateLessThan(Date value) {
            addCriterionForJDBCDate("end_date <", value, "endDate");
            return (Criteria) this;
        }

        public Criteria andEndDateLessThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("end_date <=", value, "endDate");
            return (Criteria) this;
        }

        public Criteria andEndDateIn(List<Date> values) {
            addCriterionForJDBCDate("end_date in", values, "endDate");
            return (Criteria) this;
        }

        public Criteria andEndDateNotIn(List<Date> values) {
            addCriterionForJDBCDate("end_date not in", values, "endDate");
            return (Criteria) this;
        }

        public Criteria andEndDateBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("end_date between", value1, value2, "endDate");
            return (Criteria) this;
        }

        public Criteria andEndDateNotBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("end_date not between", value1, value2, "endDate");
            return (Criteria) this;
        }

        public Criteria andLocationIsNull() {
            addCriterion("location is null");
            return (Criteria) this;
        }

        public Criteria andLocationIsNotNull() {
            addCriterion("location is not null");
            return (Criteria) this;
        }

        public Criteria andLocationEqualTo(String value) {
            addCriterion("location =", value, "location");
            return (Criteria) this;
        }

        public Criteria andLocationNotEqualTo(String value) {
            addCriterion("location <>", value, "location");
            return (Criteria) this;
        }

        public Criteria andLocationGreaterThan(String value) {
            addCriterion("location >", value, "location");
            return (Criteria) this;
        }

        public Criteria andLocationGreaterThanOrEqualTo(String value) {
            addCriterion("location >=", value, "location");
            return (Criteria) this;
        }

        public Criteria andLocationLessThan(String value) {
            addCriterion("location <", value, "location");
            return (Criteria) this;
        }

        public Criteria andLocationLessThanOrEqualTo(String value) {
            addCriterion("location <=", value, "location");
            return (Criteria) this;
        }

        public Criteria andLocationLike(String value) {
            addCriterion("location like", value, "location");
            return (Criteria) this;
        }

        public Criteria andLocationNotLike(String value) {
            addCriterion("location not like", value, "location");
            return (Criteria) this;
        }

        public Criteria andLocationIn(List<String> values) {
            addCriterion("location in", values, "location");
            return (Criteria) this;
        }

        public Criteria andLocationNotIn(List<String> values) {
            addCriterion("location not in", values, "location");
            return (Criteria) this;
        }

        public Criteria andLocationBetween(String value1, String value2) {
            addCriterion("location between", value1, value2, "location");
            return (Criteria) this;
        }

        public Criteria andLocationNotBetween(String value1, String value2) {
            addCriterion("location not between", value1, value2, "location");
            return (Criteria) this;
        }

        public Criteria andMemberIsNull() {
            addCriterion("member is null");
            return (Criteria) this;
        }

        public Criteria andMemberIsNotNull() {
            addCriterion("member is not null");
            return (Criteria) this;
        }

        public Criteria andMemberEqualTo(String value) {
            addCriterion("member =", value, "member");
            return (Criteria) this;
        }

        public Criteria andMemberNotEqualTo(String value) {
            addCriterion("member <>", value, "member");
            return (Criteria) this;
        }

        public Criteria andMemberGreaterThan(String value) {
            addCriterion("member >", value, "member");
            return (Criteria) this;
        }

        public Criteria andMemberGreaterThanOrEqualTo(String value) {
            addCriterion("member >=", value, "member");
            return (Criteria) this;
        }

        public Criteria andMemberLessThan(String value) {
            addCriterion("member <", value, "member");
            return (Criteria) this;
        }

        public Criteria andMemberLessThanOrEqualTo(String value) {
            addCriterion("member <=", value, "member");
            return (Criteria) this;
        }

        public Criteria andMemberLike(String value) {
            addCriterion("member like", value, "member");
            return (Criteria) this;
        }

        public Criteria andMemberNotLike(String value) {
            addCriterion("member not like", value, "member");
            return (Criteria) this;
        }

        public Criteria andMemberIn(List<String> values) {
            addCriterion("member in", values, "member");
            return (Criteria) this;
        }

        public Criteria andMemberNotIn(List<String> values) {
            addCriterion("member not in", values, "member");
            return (Criteria) this;
        }

        public Criteria andMemberBetween(String value1, String value2) {
            addCriterion("member between", value1, value2, "member");
            return (Criteria) this;
        }

        public Criteria andMemberNotBetween(String value1, String value2) {
            addCriterion("member not between", value1, value2, "member");
            return (Criteria) this;
        }

        public Criteria andAppovalflagIsNull() {
            addCriterion("appovalFlag is null");
            return (Criteria) this;
        }

        public Criteria andAppovalflagIsNotNull() {
            addCriterion("appovalFlag is not null");
            return (Criteria) this;
        }

        public Criteria andAppovalflagEqualTo(Integer value) {
            addCriterion("appovalFlag =", value, "appovalflag");
            return (Criteria) this;
        }

        public Criteria andAppovalflagNotEqualTo(Integer value) {
            addCriterion("appovalFlag <>", value, "appovalflag");
            return (Criteria) this;
        }

        public Criteria andAppovalflagGreaterThan(Integer value) {
            addCriterion("appovalFlag >", value, "appovalflag");
            return (Criteria) this;
        }

        public Criteria andAppovalflagGreaterThanOrEqualTo(Integer value) {
            addCriterion("appovalFlag >=", value, "appovalflag");
            return (Criteria) this;
        }

        public Criteria andAppovalflagLessThan(Integer value) {
            addCriterion("appovalFlag <", value, "appovalflag");
            return (Criteria) this;
        }

        public Criteria andAppovalflagLessThanOrEqualTo(Integer value) {
            addCriterion("appovalFlag <=", value, "appovalflag");
            return (Criteria) this;
        }

        public Criteria andAppovalflagIn(List<Integer> values) {
            addCriterion("appovalFlag in", values, "appovalflag");
            return (Criteria) this;
        }

        public Criteria andAppovalflagNotIn(List<Integer> values) {
            addCriterion("appovalFlag not in", values, "appovalflag");
            return (Criteria) this;
        }

        public Criteria andAppovalflagBetween(Integer value1, Integer value2) {
            addCriterion("appovalFlag between", value1, value2, "appovalflag");
            return (Criteria) this;
        }

        public Criteria andAppovalflagNotBetween(Integer value1, Integer value2) {
            addCriterion("appovalFlag not between", value1, value2, "appovalflag");
            return (Criteria) this;
        }

        public Criteria andSumbitdateIsNull() {
            addCriterion("sumbitDate is null");
            return (Criteria) this;
        }

        public Criteria andSumbitdateIsNotNull() {
            addCriterion("sumbitDate is not null");
            return (Criteria) this;
        }

        public Criteria andSumbitdateEqualTo(Date value) {
            addCriterionForJDBCDate("sumbitDate =", value, "sumbitdate");
            return (Criteria) this;
        }

        public Criteria andSumbitdateNotEqualTo(Date value) {
            addCriterionForJDBCDate("sumbitDate <>", value, "sumbitdate");
            return (Criteria) this;
        }

        public Criteria andSumbitdateGreaterThan(Date value) {
            addCriterionForJDBCDate("sumbitDate >", value, "sumbitdate");
            return (Criteria) this;
        }

        public Criteria andSumbitdateGreaterThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("sumbitDate >=", value, "sumbitdate");
            return (Criteria) this;
        }

        public Criteria andSumbitdateLessThan(Date value) {
            addCriterionForJDBCDate("sumbitDate <", value, "sumbitdate");
            return (Criteria) this;
        }

        public Criteria andSumbitdateLessThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("sumbitDate <=", value, "sumbitdate");
            return (Criteria) this;
        }

        public Criteria andSumbitdateIn(List<Date> values) {
            addCriterionForJDBCDate("sumbitDate in", values, "sumbitdate");
            return (Criteria) this;
        }

        public Criteria andSumbitdateNotIn(List<Date> values) {
            addCriterionForJDBCDate("sumbitDate not in", values, "sumbitdate");
            return (Criteria) this;
        }

        public Criteria andSumbitdateBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("sumbitDate between", value1, value2, "sumbitdate");
            return (Criteria) this;
        }

        public Criteria andSumbitdateNotBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("sumbitDate not between", value1, value2, "sumbitdate");
            return (Criteria) this;
        }

        public Criteria andAppovaldateIsNull() {
            addCriterion("appovalDate is null");
            return (Criteria) this;
        }

        public Criteria andAppovaldateIsNotNull() {
            addCriterion("appovalDate is not null");
            return (Criteria) this;
        }

        public Criteria andAppovaldateEqualTo(Date value) {
            addCriterionForJDBCDate("appovalDate =", value, "appovaldate");
            return (Criteria) this;
        }

        public Criteria andAppovaldateNotEqualTo(Date value) {
            addCriterionForJDBCDate("appovalDate <>", value, "appovaldate");
            return (Criteria) this;
        }

        public Criteria andAppovaldateGreaterThan(Date value) {
            addCriterionForJDBCDate("appovalDate >", value, "appovaldate");
            return (Criteria) this;
        }

        public Criteria andAppovaldateGreaterThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("appovalDate >=", value, "appovaldate");
            return (Criteria) this;
        }

        public Criteria andAppovaldateLessThan(Date value) {
            addCriterionForJDBCDate("appovalDate <", value, "appovaldate");
            return (Criteria) this;
        }

        public Criteria andAppovaldateLessThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("appovalDate <=", value, "appovaldate");
            return (Criteria) this;
        }

        public Criteria andAppovaldateIn(List<Date> values) {
            addCriterionForJDBCDate("appovalDate in", values, "appovaldate");
            return (Criteria) this;
        }

        public Criteria andAppovaldateNotIn(List<Date> values) {
            addCriterionForJDBCDate("appovalDate not in", values, "appovaldate");
            return (Criteria) this;
        }

        public Criteria andAppovaldateBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("appovalDate between", value1, value2, "appovaldate");
            return (Criteria) this;
        }

        public Criteria andAppovaldateNotBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("appovalDate not between", value1, value2, "appovaldate");
            return (Criteria) this;
        }

        public Criteria andIdSubadminIsNull() {
            addCriterion("id_subAdmin is null");
            return (Criteria) this;
        }

        public Criteria andIdSubadminIsNotNull() {
            addCriterion("id_subAdmin is not null");
            return (Criteria) this;
        }

        public Criteria andIdSubadminEqualTo(Long value) {
            addCriterion("id_subAdmin =", value, "idSubadmin");
            return (Criteria) this;
        }

        public Criteria andIdSubadminNotEqualTo(Long value) {
            addCriterion("id_subAdmin <>", value, "idSubadmin");
            return (Criteria) this;
        }

        public Criteria andIdSubadminGreaterThan(Long value) {
            addCriterion("id_subAdmin >", value, "idSubadmin");
            return (Criteria) this;
        }

        public Criteria andIdSubadminGreaterThanOrEqualTo(Long value) {
            addCriterion("id_subAdmin >=", value, "idSubadmin");
            return (Criteria) this;
        }

        public Criteria andIdSubadminLessThan(Long value) {
            addCriterion("id_subAdmin <", value, "idSubadmin");
            return (Criteria) this;
        }

        public Criteria andIdSubadminLessThanOrEqualTo(Long value) {
            addCriterion("id_subAdmin <=", value, "idSubadmin");
            return (Criteria) this;
        }

        public Criteria andIdSubadminIn(List<Long> values) {
            addCriterion("id_subAdmin in", values, "idSubadmin");
            return (Criteria) this;
        }

        public Criteria andIdSubadminNotIn(List<Long> values) {
            addCriterion("id_subAdmin not in", values, "idSubadmin");
            return (Criteria) this;
        }

        public Criteria andIdSubadminBetween(Long value1, Long value2) {
            addCriterion("id_subAdmin between", value1, value2, "idSubadmin");
            return (Criteria) this;
        }

        public Criteria andIdSubadminNotBetween(Long value1, Long value2) {
            addCriterion("id_subAdmin not between", value1, value2, "idSubadmin");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}